package com.ls.common.entity;

/**
 * @Description
 * @Author konglz
 * @Data 2023/4/24 0:29
 */
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
@ApiModel(value = "Result对象", description = "封装相应结果")
public class Result<T> {
    @ApiModelProperty("响应状态码")
    private Integer code;
    @ApiModelProperty("响应的提示信息")
    private String message;
    @ApiModelProperty("响应数据")
    private T data;
    public Result(){
    }
    public Result(Integer code, String message){
        this.code = code;
        this.message = message;
    }
    public Result(Integer code, String message, T data){
        this.code = code;
        this.message = message;
        this.data = data;
    }
}
